home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / WillowWisp.dxr / Internal_7_tab hot.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  1.7 KB  |  71 lines

  1. property spriteNum, row, fp
  2. global tableau, equal, currentsel, getlist, godlist, basecard, foundation, extras, dimpos
  3.  
  4. on beginSprite me
  5.   row = determinerow()
  6.   candd = [#one: 12, #two: 28, #thr: 44, #fou: 60, #fiv: 76, #six: 92, #sev: 108]
  7.   fp = candd[row]
  8. end
  9.  
  10. on determinerow me
  11.   if spriteNum = 26 then
  12.     return #one
  13.   else
  14.     if spriteNum = 42 then
  15.       return #two
  16.     else
  17.       if spriteNum = 58 then
  18.         return #thr
  19.       else
  20.         if spriteNum = 74 then
  21.           return #fou
  22.         else
  23.           if spriteNum = 90 then
  24.             return #fiv
  25.           else
  26.             if spriteNum = 106 then
  27.               return #six
  28.             else
  29.               if spriteNum = 122 then
  30.                 return #sev
  31.               end if
  32.             end if
  33.           end if
  34.         end if
  35.       end if
  36.     end if
  37.   end if
  38. end
  39.  
  40. on mouseEnter me
  41.   if getlist <> VOID then
  42.     if (tableau[row].getcardcount() < 14) and ((tableau[row].getcardcount() + extras.count) <= 14) then
  43.       if tableau[row].getcardcount() > 0 then
  44.         if extras.count = 0 then
  45.           if getlist.getlastcard().rankvalue = (tableau[row].getlastcard().rankvalue - 1) then
  46.             equal = 1
  47.             godlist = tableau[row]
  48.             currentsel = tableau[row].getlastcard().spnum + 1
  49.           end if
  50.         else
  51.           if getlist.cards[dimpos].rankvalue = (tableau[row].getlastcard().rankvalue - 1) then
  52.             equal = 1
  53.             godlist = tableau[row]
  54.             currentsel = tableau[row].getlastcard().spnum + 1
  55.           end if
  56.         end if
  57.       else
  58.         equal = 1
  59.         godlist = tableau[row]
  60.         currentsel = fp
  61.       end if
  62.     end if
  63.   end if
  64. end
  65.  
  66. on mouseLeave me
  67.   equal = 0
  68.   currentsel = 0
  69.   godlist = VOID
  70. end
  71.